package com.mindshifter.pivotaltracker.services.v3.core
{
	public class Filter
	{
		public var storiesId:Array;
		public var label:String;
		public var type:String;
		public function Filter(storiesId:Array,label:String="",type:String="")
		{
			this.storiesId =storiesId;
			this.label = label;
			this.type = type;
			
		}
		public function build():String
		{
			var resultString:String="filter=";
			if(storiesId != null && storiesId.length > 0) {
				resultString += "id:"+ storiesId.toString();
			}	
			return resultString;
		}
	}
}